<html>
<head><title>On-Demand Cookie Cleaner Options</title>
<style type="text/css">
.aaaa {
	color: #F00;
}
</style>
</head>
<script type="text/javascript">

// Saves options to localStorage.
function save_options() {
  var select = document.getElementById("opentab");
  var color = select.children[select.selectedIndex].value;
  localStorage["open_tab"] = color;

  // Update status to let user know options were saved.
  var status = document.getElementById("status");
  status.innerHTML = "Options Saved.";
  setTimeout(function() {
    status.innerHTML = "";
  }, 750);
}

// Restores select box state to saved value from localStorage.
function restore_options() {
  var favorite = localStorage["open_tab"];
  if (!favorite) {
    return;
  }
  var select = document.getElementById("opentab");
  for (var i = 0; i < select.children.length; i++) {
    var child = select.children[i];
    if (child.value == favorite) {
      child.selected = "true";
      break;
    }
  }
}

</script>
<style type="text/css">
body {margin:40px;}
</style>
<body onLoad="restore_options()">
<h1>On-Demand Cookie Cleaner Options</h1><br><br>

<div id="status"></div>


Open tab after cookies have been cleaned:
<select id="opentab">
 <option value="no">no</option>
 <option value="yes">yes</option>
</select>
<button onClick="save_options()">Save</button>
<br>

<br>
<br>
<span class="aaaa">
PLEASE give me feedback below if you have any issues. </span><br>
<br>
 For feature request and bugs.  Please report them at the link below.<br>

<a href="http://code.google.com/p/chrome-ondemand-cookie-cleaner/issues/list">http://code.google.com/p/chrome-ondemand-cookie-cleaner/issues/list</a>
<script>

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22179584-1']);
_gaq.push(['_trackPageview','extension/cookie-cleaner/options.html']);

</script>
<script src="ga.js"></script>
</body>
</html>